<div class="add_activity_box">
	<div class="file">
		<span><i>*</i>活动图片</span>
		<div>
			<form enctype="multipart/form-data" id="uploadForm">
				<div class="upload_img"
				@if(isset($activity))
				  style="background: url('{{$activity->image}}');background-size: cover;
    background-position: 50%;" data-img="{{$activity->image}}"
    			@endif >
					<input type="file" name="uploadFile" id="upload_file" onchange="uploadPic()">
				</div>
			</form>
			<p>建议上传尺寸为975*300px的图片</p>
		</div>
	</div>
	<p><span><i>*</i>活动名称</span><input type="text" maxlength="12" id="name" value="{{$activity->name or ''}}" placeholder="请输入活动名称"></p>
	<p><span><i>*</i>活动时长</span><input class="num" id="days" value="{{$activity->days or ''}}" type="number" placeholder="不少于7天">天<label>待活动短信发送后，开始计算时间</label></p>
	<p><span><i>*</i>活动商品</span><input type="text" maxlength="22" id="product" value="{{$activity->product or ''}}" placeholder="请设置活动商品"></p>
	<div class="dialog_button">
		<button class="true" data-id="{{$activity->id or ''}}">确定</button>
		<button class="cancel">取消</button>
	</div>
</div>